#include <stdio.h>

const int MAX=3;

int main(){
    int var[]={10,100,200};
    int i,*ptr;
    ptr=var;
    for(i=0;i<MAX;i++){
        printf("Address: var[%d]=%p\n",i,ptr);
        printf("Value: var[%d]=%d\n",i,*ptr);
        ptr++;
    }
    for(ptr--;i>0;i--){
        printf("Address: var[%d]=%p\n",i-1,ptr);
        printf("Value: var[%d]=%d\n",i-1,*ptr);
        ptr--;
    }
    return 0;
}

